//
//  HotViewcontroller.m
//  YSBEmployee
//
//  Created by developer on 2021/11/30.
//  Copyright © 2021 ysb. All rights reserved.
//


#import "YSBDefaultDetailsViewController.h"

@implementation YSBDefaultDetailsViewController


- (void)navigationRightAction {
    if ([self hasAppealRecord]) {
        /// 已经申诉过，跳转到申诉详情
        YSBMyComplaintDetailsViewController *vc = [[YSBMyComplaintDetailsViewController alloc] init];
        vc.complaintID = self.model.appeal_id;
        [self.navigationController pushViewController:vc animated:YES];
    }
    else {
        /// 进入发起申诉页面
        YSBAccountComplaintViewController *vc = [[YSBAccountComplaintViewController alloc] init];
        vc.complaintID = self.creditListID;
        if (self.creditListID.intValue == 0) {
            vc.complaintID = self.model.ID;
        }
        vc.recordID = self.recordID;
        [self.navigationController pushViewController:vc animated:YES];
    }
}


@end



